package com.han.spider.safecounty;

/**
 * @Author: Hanjiafeng
 * @Date: 2020/5/23
 * @Desc:
 */
public enum TypeEnum {
    /**
     * 没有直接设备
     */
    NO_DIRECT_DEVICE(1, "无直接设备"),
    /**
     * 有直接设备
     */
    DIRECT_DEVICE(2, "有直接设备"),
    /**
     * 其他
     */
    OTHER(3, "其他");
    private int id;
    private String name;

    TypeEnum(int id, String name) {
        this.id = id;
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return name;
    }
}
